import request from '@/utils/request'

// 查询项目结算单列表
export function listProjectSettle(query) {
  return request({
    url: '/agency/projectSettle/list',
    method: 'get',
    params: query
  })
}

// 查询项目结算单详细
export function getProjectSettle(id) {
  return request({
    url: '/agency/projectSettle/' + id,
    method: 'get'
  })
}

// 新增项目结算单
export function addProjectSettle(data) {
  return request({
    url: '/agency/projectSettle',
    method: 'post',
    data: data
  })
}

// 修改项目结算单
export function updateProjectSettle(data) {
  return request({
    url: '/agency/projectSettle',
    method: 'put',
    data: data
  })
}

// 删除项目结算单
export function delProjectSettle(id) {
  return request({
    url: '/agency/projectSettle/' + id,
    method: 'delete'
  })
}
